# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmukui-kwincommon\")

include_directories(${KWin_SOURCE_DIR}/src/effects)

set(kcmukui-kwincommon_SRC
    effectsmodel.cpp
)

qt_add_dbus_interface(kcmukui-kwincommon_SRC
    ${KWin_SOURCE_DIR}/src/org.kde.kwin.Effects.xml ukui-kwin_effects_interface
)

add_library(kcmukui-kwincommon SHARED ${kcmukui-kwincommon_SRC})

target_link_libraries(kcmukui-kwincommon
    Qt::Core
    Qt::DBus
    KF5::CoreAddons
    KF5::ConfigCore
    KF5::I18n
    KF5::Package
    KF5::KCMUtils
)

set_target_properties(kcmukui-kwincommon PROPERTIES
    VERSION ${PROJECT_VERSION}
    SOVERSION ${PROJECT_VERSION_MAJOR}
)

install(TARGETS kcmukui-kwincommon ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
